home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / m68k / math.S < prev    next >
Encoding:
Text File  |  1994-06-05  |  636 b   |  41 lines

  1. /*
  2.  *  linux/kernel/math.s
  3.  *
  4.  *  Copyright (C) 1993        Hamish Macdonald
  5.  *
  6.  * This file is subject to the terms and conditions of the GNU General Public
  7.  * License.  See the file README.legal in the main directory of this archive
  8.  * for more details.
  9.  */
  10.  
  11. .globl ___umodsi3, ___modsi3, ___udivsi3, ___divsi3, ___mulsi3
  12.  
  13. .text
  14. .even
  15. ___umodsi3:
  16.     movel sp@(4),d0
  17.     divull sp@(8),d1,d0
  18.     movel d1,d0
  19.     rts
  20.  
  21. ___modsi3:
  22.     movel sp@(4),d0
  23.     divsll sp@(8),d1,d0
  24.     movel d1,d0
  25.     rts
  26.  
  27. ___udivsi3:
  28.     movel sp@(4),d0
  29.     divull sp@(8),d0,d0
  30.     rts
  31.  
  32. ___divsi3:
  33.     movel sp@(4),d0
  34.     divsll sp@(8),d0,d0
  35.     rts
  36.  
  37. ___mulsi3:
  38.     movel sp@(4),d0
  39.     mulsl  sp@(8),d0
  40.     rts
  41.